/*
 * @Author: QiuZongXi 897956138@qq.com
 * @Date: 2022-05-07 11:03:56
 * @LastEditors: QiuZongXi 897956138@qq.com
 * @LastEditTime: 2022-06-20 10:29:52
 * @FilePath: \vue2_cli\src\api\materialSettlement\transferSettlement.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//内部调拔结算（详情或者 新增)↓
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
const request = {
    //获取列表  列表页
    getpaymentList (params) {
        return httpPost({
            url: '/materialsettle/InternalAllocationSettlement/listByEntity',
            params
        })
    },
    //新增 调拔结算
    adddiaobajiesuan (params) {
        return httpPost({
            url: '/materialsettle/InternalAllocationSettlement/create',
            params
        })
    },
    //修改调拔结算
    setdiaobajiesuan (params) {
        return httpPost({
            url: '/materialsettle/InternalAllocationSettlement/update',
            params
        })
    },

    //新增 修改 删除 明细信息
    updatemingxixinxi (params) {
        return httpPost({
            url: '/materialsettle/InternalAllocationSettlement/updateList',
            params
        })
    },
    //根据id获取·详情
    getdatabyid (params) {
        return httpGet({
            url: '/materialsettle/InternalAllocationSettlement/findById',
            params
        })
    },
    getmingxibyid (params) {
        return httpGet({
            url: '/materialsettle/InternalAllocationSettlement/getListById',
            params
        })
    },
    deljiesuan (params) {
        // /materialsettle/InternalAllocationSettlement/realDelete
        return httpGet({
            url: '/materialsettle/InternalAllocationSettlement/delete',
            params
        })
    },
    //弹窗接口 模拟数据 ↓
    xzdbd (params) {
        return httpGet({
            url: '/material/internalAllocation/listSettleableDtlsForSelect',
            params
        })
    },
    //初始化红单
    initRedBill (params) {
        return httpGet({
            url: '/materialsettle/InternalAllocationSettlement/initRedBill',
            params
        })
    },

}

export default request